package com.zhuss.idea.db.dao.ext;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.zhuss.bean.bo.SearchKeyWordBo;
import com.zhuss.bean.bo.idea.idea.SearchIdeaBo;
import com.zhuss.bean.bo.idea.idea.wechat.ListIdeaBo;
import com.zhuss.bean.vo.DetailKeyWordVo;
import com.zhuss.bean.vo.idea.idea.DetailIdeaVo;
import com.zhuss.bean.vo.idea.idea.ListIdeaVo;
import com.zhuss.idea.db.dao.gen.IdeaMapper;
import com.zhuss.idea.db.entity.Idea;

@Mapper
public interface IdeaDao extends IdeaMapper {
	
	void create(Idea record);
	
	void delete(Idea record);
	
	List<Idea> listAll(@Param("area") Integer area);

	List<ListIdeaVo> list(SearchIdeaBo bo);

	Integer countList(SearchIdeaBo bo);

	DetailIdeaVo detail(@Param("ideaId") Long ideaId);

	List<DetailIdeaVo> listIdea(ListIdeaBo bo);
	
	Integer countIdeaList(ListIdeaBo bo);
	
	List<DetailKeyWordVo> keyWord(SearchKeyWordBo bo);
	
	Integer countKeyWord(SearchKeyWordBo bo);
    
}